html, body{
    margin: 0;
    background: #303035;
    -webkit-user-select: none;
            user-select: none;
}
#container{
    position: relative;
    width: 1280px;
    height: 750px;
    margin: auto;
    background: url(./images/bg.png);
}
#console{
    position: relative;
    height: 80px;
    margin: auto;
    font-family:arial;
    font-size:12px;
    background-color:#000;
    color:#00ff00;
    border:2px solid grey;
    width:1200px;
    height:80px;
    overflow:hidden
}
#tempo, #style, #osc1, #osc2, #master, #arp, #bassline, #beatbeast{
    position: absolute;
    overflow: hidden;
}
#arp, #bassline, #beatbeast{
    left: 222px;
    width: 1012px;
}
#tempo{
    top: 9px;
    left: 49px;
    width: 170px;
    height: 108px;
}
#style{
    top: 120px;
    left: 49px;
    width: 170px;
    height: 200px;
}
#osc1{
    top: 9px;
    left: 222px;
    width: 505px;
    height: 310px;
}
#osc2{
    top: 9px;
    left: 729px;
    height: 310px;
    width: 505px;
}
#master{
    top: 323px;
    left: 49px;
    width: 170px;
    height: 387px;
}
#arp{
    top: 323px;
    height: 154px;
}
#bassline{
    top: 470px;
    height: 104px;
}
#beatbeast{
    top: 578px;
    height: 132px;
}

.btn{
    display: block;
    width: 140px;
    height: 44px;
    margin-top: 9px;
    margin-left: 15px;
    cursor: pointer;
}
.btn input{
    display: none;
}
.btn div{
    width: 100%;
    height: 100%;
}
.btn-epic div{
    margin-top: 42px;
    background: url(./images/btn-epic.png);
}
.btn-epic :checked + div{
    background: url(./images/btn-epic-selected.png);
}
.btn-electro div{
    background: url(./images/btn-electro.png);
}
.btn-electro :checked + div{
    background: url(./images/btn-electro-selected.png);
}
.btn-chinese div{
    background: url(./images/btn-chinese.png);
}
.btn-chinese :checked + div{
    background: url(./images/btn-chinese-selected.png);
}
.btn-boost{
    background: url(./images/btn-boost.png);
}
.btn-boost :checked + div{
    background: url(./images/btn-boost-selected.png);
}
.btn-small{
    width: 108px;
    height: 28px;
    margin: 0 0 8px 0;
}
.btn-small :checked + div{
    background: url(./images/checkbox-checked.png) 6px no-repeat;
}
select{
    width: 119px;
    height: 26px;
    padding-left: 10px;
    color: white;
    -webkit-appearance: none;
    background: url(./images/icon-triangle-down.png) 100px 8px no-repeat, url(./images/select-bg.png) no-repeat;
    outline: none;
    border-width: 0;
    border-radius: 0;
    cursor: pointer;
}
.range{
    position: absolute;
    top: 45px;
    left: 410px;
    width: 20px;
    height: 153px;
    background: url(./images/range-rule.png) 50% 50% no-repeat;
}
.range .range-knob{
    position: absolute;
    top: 56px;
    left: -0.5px;
    width: 20px;
    height: 20px;
    background: url(./images/range.png) no-repeat;
    cursor: move;
}

#tempo .tempo{
    position: absolute;
    top: 45px;
    left: 15px;
    width: 120px;
    height: 52px;
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-position: 0 0, 40px 0, 80px 0;
}
#tempo .change-tempo{
    position: absolute;
    right: 11px;
    top: 53px;
    width: 13px;
    line-height: 20px;
}
#tempo .change-tempo > img{
    cursor: pointer;
}
#tempo .change-tempo > img.disabled{
    opacity: 0.5;
    cursor: default;
}

#osc1 .knobs,
#osc2 .knobs{
    position: absolute;
    top: 53px;
    left: 54px;
    font-size: 0;
}
.knob{
    position: relative;
    display: inline-block;
    width: 40px;
    height: 40px;
    margin-right: 48px;
    margin-bottom: 47.5px;
    border-radius: 50%;
    background: url(./images/knob.png);
    cursor: move;
}
.knob-unshown{
    visibility: hidden;
}
.knob-vol{}
.knob-wave{
    cursor: default;
}
.knob-attack{}
.knob-release{}
.knob-fm-wave{
    cursor: default;
}
.knob-fm-freq{}
.knob-fm-depth{}
.knob-filter-cutoff{}
.knob-filter-resonance{}
.knob-filter-q{}
.knob-filter-mod{}
.knob-wave .rotatable,
.knob-fm-wave .rotatable{
    cursor: move;
}
[type=triangle] > .rotatable{
    transform: rotate(90deg);
}
[type=square] > .rotatable{
    transform: rotate(180deg);
}
[type=saw] > .rotatable{
    transform: rotate(270deg);
}
[type=sine] > .rotatable{
    transform: rotate(0deg);
}
.wave{
    position: absolute;
    width: 22px;
    height: 14px;   
}
.wave-triangle{
    top: -12px;
    left: -18px;
    background: url(./images/wave-triangle.png);
}
[type=triangle] .wave-triangle{
    background: url(./images/wave-triangle-selected.png);
}
.wave-square{
    top: -10px;
    right: -23px;
    background: url(./images/wave-square.png);
}
[type=square] .wave-square{
    background: url(./images/wave-square-selected.png);
}
.wave-saw{
    bottom: -12px;
    right: -23px;
    background: url(./images/wave-saw.png);
}
[type=saw] .wave-saw{
    background: url(./images/wave-saw-selected.png);
}
.wave-sine{
    bottom: -12px;
    left: -18px;
    background: url(./images/wave-sine.png);
}
[type=sine] .wave-sine{
    background: url(./images/wave-sine-selected.png);
}

#master .btn-boost{
    margin-top: 44px;
}
#master .knob-master{
    position: absolute;
    top: 113px;
    left: 48px;
    width: 74px;
    height: 74px;
    background: url(./images/knob-master.png);
    cursor: move;
}

#arp .chrod-name{
    position: absolute;
    top: 42px;
    left: 35px;
    width: 170px;
    height: 43px;
    background-image: url(./images/chrod-name-s.png), url(./images/chrod-name-e.png), url(./images/chrod-name-min.png);
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-position: 0 0, 35px 0, 69px 0;
}
#arp .knobs{
    position: absolute;
    top: 44px;
    left: 230px;
    font-size: 0;
}
#arp .arptempo{
    will-change: transform;
}
#arp .arptempo[type="0.5"]{
    transform: rotate(0deg);
}
#arp .arptempo[type="1"]{
    transform: rotate(135deg);
}
#arp .arptempo[type="2"]{
    transform: rotate(270deg);
}
#arp .mod{
    position: absolute;
    left: 793px;
}
#arp .mod .knob{
    position: absolute;
    top: 44px;
}
#arp .mod .knob[type=pattern]{
    transform: rotate(-180deg);
}
#arp .mod .knob[type=random]{
    transform: rotate(-90deg);
}
#arp .mod .pattern{
    position: absolute;
    top: 32px;
    left: 54px;
}
#arp .mod .random{
    position: absolute;
    top: 92px;
    left: 59px;
    border-radius: 4px;
}

#arp .leds{
    position: absolute;
    top: 133px;
    left: 30px;
    width: 950px;
    height: 16px;
    background-image: url(./images/led-2.png), url(./images/led-2.png), url(./images/led-2.png), url(./images/led-2.png), url(./images/led-2.png), url(./images/led-2.png), url(./images/led-2.png), url(./images/led-2.png), url(./images/led-2.png), url(./images/led-2.png), url(./images/led-2.png), url(./images/led-2.png), url(./images/led-2.png), url(./images/led-2.png), url(./images/led-2.png), url(./images/led-2.png), url(./images/led-2.png), url(./images/led-2.png), url(./images/led-2.png), url(./images/led-2.png), url(./images/led-2.png), url(./images/led-2.png), url(./images/led-2.png), url(./images/led-2.png), url(./images/led-2.png), url(./images/led-2.png), url(./images/led-2.png), url(./images/led-2.png), url(./images/led-2.png), url(./images/led-2.png), url(./images/led-1.png), url(./images/led-0.png);
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
    background-position: 0px 0, 30px 0, 60px 0, 90px 0, 120px 0, 150px 0, 180px 0, 210px 0, 240px 0, 270px 0, 300px 0, 330px 0, 360px 0, 390px 0, 420px 0, 450px 0, 480px 0, 510px 0, 540px 0, 570px 0, 600px 0, 630px 0, 660px 0, 690px 0, 720px 0, 750px 0, 780px 0, 810px 0, 840px 0, 870px 0, 900px 0, 930px 0;
}

#bassline .vol{
    position: absolute;
    top: 26px;
    left: 230px;
}
#bassline select{
    position: absolute;
    top: 48px;
    left: 300px;
}
#bassline .filter{
    position: absolute;
    top: 15px;
    left: 445px;
    height: 84px;
    width: 455px;
    padding: 10px 0 0 116px;
    border-radius: 5px;
    font-size: 0;
}

#beatbeast .clip{
    position: absolute;
    top: 36px;
    left: 33px;
    width: 100px;
    height: 38px;
}
#beatbeast .record{
    position: absolute;
    top: 26px;
    left: 170px;
    width: 18px;
    height: 19px;
    background-image: url(./images/record.png);
    cursor: pointer;
}
#beatbeast .record.unrecord{
    background-image: url(./images/unrecord.png);
}
#beatbeast .play{
    position: absolute;
    top: 74px;
    left: 170px;
    width: 18px;
    height: 19px;
    background-image: url(./images/play.png);
    cursor: pointer;
}
#beatbeast .play.stop{
    background-image: url(./images/stop.png);
}
#beatbeast .vol{
    position: absolute;
    top: 39px;
    left: 230px;
}
#beatbeast .clip2{
    position: absolute;
    top: 35px;
    left: 309px;
    width: 520px;
    height: 79px;
}
#beatbeast .r{
    position: absolute;
    top: 20px;
    left: 852px;
}
.message{
    position: absolute;
    top: 0;
    background-color: #FFF;
    padding: 5px 20px;
    left: 50%;
    transform: translate(-50%);
}